package org.wmq.shopmanager.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;
import org.wmq.shopmanager.mapper.OrderMapper;
import org.wmq.shopmanager.service.OrderService;
import org.wmq.shopmodel.Entity.product.Order;

import java.math.BigDecimal;
import java.time.LocalDate;

@Service
@RequiredArgsConstructor
public class OrderServiceImpl extends ServiceImpl<OrderMapper, Order> implements OrderService {
    private final OrderMapper orderMapper;

    @Override
    public BigDecimal getTotalAmountByDate(LocalDate date) {
        return this.orderMapper.getTotalAmountByDate(date);
    }
}
